﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLULearningNetworkModel
{
    public partial class Level
    {
        public static Level Single(int point)
        {
            DLULNEntities entities = new DLULNEntities();
            return entities.Levels.Where(lv => lv.RequiredPoint_i >= point).OrderBy(lv => lv.RequiredPoint_i).FirstOrDefault();
        }
    }
}
